package com.hmall.api.user;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zzw
 * @date 2025/6/17
 * @description 用户服务远程调用
 */
@FeignClient(name = "user-service", path = "/inner/users")
public interface UserClient {
    @PutMapping("/money/deduct")
    void deductMoney(@RequestParam("userId") Long userId,@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
